import { Module } from '@nestjs/common';
import { LogModule } from '../log/log.module';
import { TypeOrmModule } from '@nestjs/typeorm';
import { Role } from './role.entity';
import { RoleService } from './role.service';
import { RoleController } from './role.controller';
import { UserService } from '../user/user.service';

@Module({
  imports: [TypeOrmModule.forFeature([ // 这步骤是不能少的
    Role,
  ]), LogModule.register('role')],
  controllers: [RoleController],
  providers: [
    RoleService,
  ],
})
export class RoleModule {
}
